<template>
    <a-modal :title="$t('用户同步')" v-model='isShow' :maskClosable='false' v-dragModal>
        <a-checkbox v-model="checked">{{ $t('删除不存在的用户及用户组') }}</a-checkbox>
        <template slot="footer">
            <a-button key="back" @click="handleClose">
                {{ $t('Cancel') }}
            </a-button>
            <a-button key="submit" type="primary" :loading="loading" @click="handleConfirm">
                {{ $t('Sure') }}
            </a-button>
        </template>
    </a-modal>
</template>

<script>
export default {
    data() {
        return {
            loading: false,
            isShow: false,
            checked: false,
        };
    },
    methods: {
        handleConfirm() {
            this.$emit('handle-checked', this.checked)
        },
        handleClose() {
            this.checked = false
            this.isShow = false
        },
    }
}
</script>
